package com.woniu.service.impl;

import com.woniu.mapper.DeptMapper;
import com.woniu.mapper.EmpMapper;
import com.woniu.service.EmpService;
import com.woniu.vo.EmpVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: 16327
 * @date: 2020/12/26 10:53
 * @description:
 */
@Service
@Transactional
public class EmpServiceImpl implements EmpService {
    @Autowired
    EmpMapper empMapper;
    @Override
    public List<EmpVo> findAllEmp() {
        List<EmpVo> empVos = empMapper.selectEmpVoAll();
        return empVos;
    }
}
